<ion-view view-title="计划管理">
  <ion-nav-buttons side="left">
    <button class="button button-icon icon ion-ios-minus-outline"
      ng-click="data.showDelete = !data.showDelete; data.showReorder = false"></button>
  </ion-nav-buttons>
  <ion-nav-buttons side="right">
    <a class="button button-icon icon ion-plus" ng-href="#tab/plan/add"></a>
  </ion-nav-buttons>
  <ion-content>
    <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
    <ion-list show-delete="data.showDelete">
      <ion-item class="item-icon-right" collection-repeat="item in plans" href="#tab/plan/edit/{{item.id}}">
        <i class="icon ion-chevron-right icon-accessory"></i>
        {{item.name}}

        <!-- <ion-option-button class="button-calm" ng-click="onInvite()">邀请</ion-option-button> -->
        <ion-delete-button class="ion-minus-circled" ng-click="onDeletePlan(item)"></ion-delete-button>
        <ion-option-button class="button-assertive" ng-click="onDeletePlan(item)">删除</ion-option-button>
      </ion-item>
    </ion-list>

  </ion-content>
</ion-view>
